Add rustflags support to config files
authorBrian Anderson <banderson@mozilla.com>
Thu, 3 Mar 2016 22:52:45 +0000 (22:52 +0000)
committerBrian Anderson <banderson@mozilla.com>
Wed, 16 Mar 2016 17:32:00 +0000 (17:32 +0000)
commit2f01868a94f85457e02465cfb53b078d4e25b4d5
tree80b913a5c799f1ce632e20f6e35fba52415c169d
parente4baac0ac2f340c0637b0cc0f857f9e57fef0642
Add rustflags support to config files

`build.rustflags` is treated exactly like `RUSTFLAGS`.

It is a list, so argument lists with spaces work.

`RUSTFLAGS` takes precedent, then `build.rustflags`.
Cargo.lock
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/fingerprint.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_compile.rs
tests/test_cargo_compile_rustflags.rs [new file with mode: 0644]
tests/tests.rs